package com.bianmaba.sso.controller;

import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("user")
public class UserController {
    @RequestMapping("save")
    public String save() {
        return "save";
    }

    @RequestMapping("me")
    public Authentication me(Authentication authentication) {
        return authentication;
    }
}
